🍻 Show Flow & Word Counts
(
32
actions, 24 KB)
0 Run Shortcut
_Get Flow & Word Counts
➔ dict
»
1
7
20
Input
:
[CurrentDate]
Workflow
:
{ "workflowIdentifier": "18147F90-431D-4A64-AB66-918A88186549", "workflowName": "_Get Flow & Word Counts", "isSelf": false }
1 Get Numbers from
[0 dict
as Dictionary.numberOfFlows
]
➔ numberOfFlows
»
2
3
2 If
[1 numberOfFlows]
>
0
3 Repeat
[1 numberOfFlows]
Times
4 Text
🍅
5 End Repeat Times »
6 Combine Text
[5 Repeat Results]
with
Custom
➔ numberOfFlows
»
20
27
7 Get Numbers from
[0 dict
as Dictionary.numberOfWords
]
➔ numberOfWords
»
8 ToolboxProForShortcuts > PluraliseIntent
➔ numberOfWords
»
20
27
word
:
word
countType
:
number
count
:
[7 numberOfWords]
output
:
numberDigit
9 If
[DeviceDetails
’s OS
]
is
iOS
10 Format Date
[CurrentDate]
»
DateFormatStyle
:
Custom
DateFormat
:
d
11 Calculate
[10 Formatted Date
as Number
]
…
»
ScientificMathOperand
:
2
ScientificMathOperation
:
Modulus
12 If
[11 Calculation Result
as Boolean
]
is true
13 Run Shortcut
NASA - Get APOD Image
Workflow
:
{ "workflowIdentifier": "44CAB21F-AE30-4340-8374-7E6214A1CC4B", "workflowName": "NASA - Get APOD Image", "isSelf": false }
14 Otherwise
15 Run Shortcut
NASA - Get EPIC Image
Workflow
:
{ "workflowIdentifier": "07EBF89A-F9E3-452E-A06E-A8EF3DB2A78F", "workflowName": "NASA - Get EPIC Image", "isSelf": false }
16 End If »
17 Get Contents of URL
[16 If Result]
»
18 Get Images from
[17 Contents of URL]
»
20
19 URL
https://github.com/huaminghuangtw/Deep-Work-Machine
»
20 ToolboxProForShortcuts > ShowNotificationIntent
subtitle
:
[6 numberOfFlows]
onTap
:
[19 URL]
threadID
:
soundType
:
none
title
:
✍️
[8 numberOfWords]
body
:
[0 dict
as Dictionary.data
]
notificationID
:
🍻 Show Flow & Word Counts
attachment
:
[18 Images]
21 Vibrate Device
22 Lock Screen
23 End If ▵
9
24 If
[DeviceDetails
’s OS
]
is
macOS
25 Dictionary »
{ "topic": "Productivity" }
26 Run Shortcut
Get Random Journal Prompt Item(s)
»
Input
:
[25 Dictionary]
Workflow
:
{ "workflowIdentifier": "B9AD53B7-9843-4075-9386-FC80989F9C27", "workflowName": "Get Random Journal Prompt Item(s)", "isSelf": false }
27 Text »
[8 numberOfWords]
[6 numberOfFlows]
[26 Shortcut Result]
28 Lock-Screen-One > SetTextIntent
widget
:
widget1
text
:
[27 Text]
29 End If
30 End If ▵
2
31 Stop This Shortcut